<!--  -->
<template>
  <div class="balance">
    <header>
      <Header><span class="account">我的账户</span></Header>
    </header>
    <main>
      <div class="top"></div>
      <div class="middle">
        <li>
          <van-icon name="credit-pay" />
          <span>银行卡</span>
        </li>
        <li>
          <van-icon name="cash-on-deliver" />
          <span>消费记录</span>
        </li>
        <li>
          <van-icon name="diamond-o" />
          <span>积分中心</span>
        </li>
      </div>
      <div class="lower">
        <img src="../../../assets/img/images/one.jpg" alt="" />
        <img src="../../../assets/img/images/two.jpg" alt="" />
      </div>
      <div class="zuixia">
        <p>
          <img src="../../../assets/img/images/images/si_03.gif" alt="" />
        </p>
      </div>
    </main>
    <footer>
      <span><van-icon name="arrow-left"/></span
      ><span><van-icon name="arrow"/></span>
    </footer>
  </div>
</template>

<script>
import Header from "../../../components/Header";
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {
    Header,
  },
  data() {
    //这里存放数据
    return {};
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {},
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
};
</script>
<style lang="scss" scoped>
@import "@css/style.scss";
.balance {
  width: 100%;
  height: 100%;
  background: #fff;
}
header {
  .account {
    margin-right: 40%;
    font-size: 0.5rem;
  }
}
main {
  flex: 1;
  width: 100%;
  height: 87%;
  background: #fff;
  flex: 1;
  overflow-y: scroll;
  .top {
    width: px2rem(355);
    height: px2rem(171);
    background: rgb(247, 85, 46);
    margin: auto;
    margin-left: px2rem(8);
    margin-top: px2rem(10);
    border-radius: px2rem(10);
  }
  .middle {
    display: flex;
    margin: 0 auto;
    border-bottom: 1px solid #eee;
    justify-content: space-around;
    padding: px2rem(10) 0;
    background: #fff;
    li {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: px2rem(5) 0;
      justify-content: space-around;
      margin: px2rem(15) 0 0 0;
      span {
        flex: 1;
        font-size: px2rem(12);
        margin-top: px2rem(8);
        color: #26363c;
      }
    }
  }
  .lower {
    height: px2rem(120);
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fff;
    border-bottom: 12px solid #f6f6f6;
    img {
      width: px2rem(170);
      height: px2rem(66);
    }
  }
}
footer {
  width: 100%;
  height: px2rem(50);
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: space-around;
  :nth-child(2) {
    color: #ccc;
  }
}
.zuixia p {
  width: 100%;
  height: px2rem(50);
  background: #fff;
  font-size: px2rem(16);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
